import React from 'react'
import { useLocation,useParams } from 'react-router-dom'
import qs from 'qs'
export default function News() {
    const location = useLocation()
    const {state} = location
    const {id} =useParams()
  return (
    <div>
      编号：{id}
      <br />
      热门新闻：
        <ul>
          {
             state.map(item=><li>{item}</li>)
          }
         
        </ul>
        
    </div>
  )
}
